cssstyle: Remove unused _add_difference
authorTimm Bäder <mail@baedert.org>
Sat, 24 Aug 2019 05:24:49 +0000 (07:24 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:24 +0000 (17:36 +0200)
gtk/gtkcssstyle.c
gtk/gtkcssstyleprivate.h

index 02fc1abc955273a86f565f3a475af54bc5f81d7c..835a2b4213fbfe1096837e218a29764247265595 100644 (file)
@@ -81,30 +81,6 @@ gtk_css_style_get_section (GtkCssStyle *style,
   return GTK_CSS_STYLE_GET_CLASS (style)->get_section (style, id);
 }
 
-GtkBitmask *
-gtk_css_style_add_difference (GtkBitmask  *accumulated,
-                              GtkCssStyle *style,
-                              GtkCssStyle *other)
-{
-  gint len, i;
-
-  if (style == other)
-    return accumulated;
-
-  len = _gtk_css_style_property_get_n_properties ();
-  for (i = 0; i < len; i++)
-    {
-      if (_gtk_bitmask_get (accumulated, i))
-        continue;
-
-      if (!_gtk_css_value_equal (gtk_css_style_get_value (style, i),
-                                 gtk_css_style_get_value (other, i)))
-        accumulated = _gtk_bitmask_set (accumulated, i, TRUE);
-    }
-
-  return accumulated;
-}
-
 gboolean
 gtk_css_style_is_static (GtkCssStyle *style)
 {
index ae0947f169dd7894fe475a8c37551eb07485214c..c0add354ad1a8df724c935cd572812d2b49f2fdd 100644 (file)
@@ -64,9 +64,6 @@ GtkCssValue *           gtk_css_style_get_value                 (GtkCssStyle
                                                                  guint                   id) G_GNUC_PURE;
 GtkCssSection *         gtk_css_style_get_section               (GtkCssStyle            *style,
                                                                  guint                   id) G_GNUC_PURE;
-GtkBitmask *            gtk_css_style_add_difference            (GtkBitmask             *accumulated,
-                                                                 GtkCssStyle            *style,
-                                                                 GtkCssStyle            *other);
 gboolean                gtk_css_style_is_static                 (GtkCssStyle            *style) G_GNUC_PURE;
 
 char *                  gtk_css_style_to_string                 (GtkCssStyle            *style);